<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		created(){
			this.init();
		},
		methods:{
			init(){
				// #ifdef H5
				if(this.$env==='0'){
					uni.setStorageSync('token','eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiJhcHBfdXNlcjoxNTY1NjYyMTA1MDcwMzMzOTU0Iiwicm5TdHIiOiJEQXdmVVoza2FORUozY2JuQzh0T3Nta3pzUDBVRk83bSJ9.1hfUBICdQ-rgQf0wUAIU0RX9a2Vm7f1Vyij4n6WBBTA')
				}
				// #endif
			}
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
</style>
